package com.study.service.impl;

import com.study.dao.UserDao;
import com.study.entity.User;
import com.study.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/10/18/018.
 */
@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User findOneById(Integer id) {
        return userDao.findOneById(id);
    }

    @Override
    public List<User> findList(User user) {
        return null;
    }

    @Override
    public int updateOne(User user) {
        return 0;
    }

    @Override
    public int saveOne(User user) {
        return 0;
    }

    @Override
    public int deleteById(Integer id) {
        return 0;
    }

    @Override
    public User findUser(User user) {
        return userDao.findUser(user);
    }
}
